﻿<UserControl x:Class="Agnes.Mainframe.SlnInfoView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Agnes.Mainframe"
             mc:Ignorable="d" 
             d:DesignHeight="800" d:DesignWidth="609">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/Agnes.Mainframe;Component/MainframeResource.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid Margin ="20">
        <Grid.Resources>
            <Style x:Key="LineStyle" TargetType="{x:Type Path}">
                <Setter Property="Margin" Value="0,5,0,0" />
                <Setter Property="StrokeThickness" Value="2" />
                <Setter Property="Fill" Value="Black" />
                <Setter Property="Stroke" Value="LightGray" />
                <Setter Property="Data">
                    <Setter.Value>
                        <LineGeometry StartPoint="0,0" EndPoint="600,0" />
                    </Setter.Value>
                </Setter>
            </Style>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        
        <TextBlock Grid.Row="0" FontSize="28" Text="方案信息"  />
        <TextBlock Grid.Row="1" HorizontalAlignment="Left" Text="方案名：" FontSize="20" Margin="0,10,0,0"/>
        <Path Grid.Row="2" Style="{StaticResource LineStyle}" Margin="0,10,0,10"/>
        <TextBlock Grid.Row="3" HorizontalAlignment="Left" FontSize="20" Text="修改密码" MaxHeight="30"   Margin="0,50,0,0"/>
        <Path Grid.Row="4" Style="{StaticResource LineStyle}" Margin="0,0,0,10"/>
        <StackPanel Grid.Row="5" Orientation="Horizontal" Margin="0,0,0,0">
            <TextBlock FontSize="16" Text="当前密码" Margin="0,0,0,0"/>
            <PasswordBox x:Name="curPswBox" 
                         local:PasswordBoxHelper.IsPasswordBindingEnabled="True"
                         local:PasswordBoxHelper.BindedPassword=""
                         MinWidth="200" Margin="10,0,0,0"/>
            
        </StackPanel>
        <StackPanel Grid.Row="6" Orientation="Horizontal" Margin="0,10,0,0">
            <TextBlock  Text="新的密码" FontSize="16" />
            <PasswordBox x:Name="newPswBox"
                         local:PasswordBoxHelper.IsPasswordBindingEnabled="True"
                         local:PasswordBoxHelper.BindedPassword=""
                         MinWidth="200" Margin="10,0,0,0"/>
         
        </StackPanel>
        <StackPanel Grid.Row="7" Orientation="Horizontal" Margin="0,10,0,0">
            <TextBlock Text="确认密码" FontSize="16" Margin="0,0,0,0"/>
            <PasswordBox x:Name="confirmPswBox"
                         local:PasswordBoxHelper.IsPasswordBindingEnabled="True"
                         local:PasswordBoxHelper.BindedPassword=""
                         MinWidth="200" Margin="10,0,0,0"/>  
        </StackPanel>
        <Button x:Name="confirmPswButton" Grid.Row="8" Content="确认"  MinWidth="100" MinHeight="35" HorizontalAlignment="Left" Margin="280,15,0,0" />
        <Path Grid.Row="9" Style="{StaticResource LineStyle}" Margin="0,10,0,0"/>
    </Grid>
</UserControl>
